package com.cipe.cmrs.model;

import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * <p>
 * Pojo mapping TABLE dbo.ProjectStatus
 * </p>
 * <p>
 * Generated at Sat Dec 03 14:39:49 PKT 2011
 * </p>
 * 
 * @author Incepio
 */
@Entity
@Table(name = "projectstatus")
@SuppressWarnings("serial")
public class Cipeprojectstatus extends BaseAuditEntity {

	/**
	 * List of Cipeproject
	 */
	@OneToMany(mappedBy = "cipeprojectstatus")
	private List<Cipeproject>						cipeprojects						= null;
	/**
	 * Attribute description.
	 */
	@Basic
	@Column(name = "statusdesc", length = 500)
	private String									description;
	/**
	 * Attribute displayName.
	 */
	@Basic
	@Column(name = "statusname", length = 100)
	private String									displayName;
	/**
	 * List of Projectstatuschangelog
	 */
	@OneToMany(mappedBy = "newprojectstatus")
	private List<Projectstatuschangelog>			projectstatuschangelogs				= null;
	/**
	 * List of Projectstatustransitionsallowed
	 */
	@OneToMany(mappedBy = "goingtostatus")
	private List<Projectstatustransitionsallowed>	projectstatustransitionsalloweds	= null;

	/**
	 * Get the list of Cipeproject
	 */
	public List<Cipeproject> getCipeprojects() {
		return this.cipeprojects;
	}

	/**
	 * @return description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @return displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	public List<Projectstatuschangelog> getProjectstatuschangelogs() {
		return projectstatuschangelogs;
	}

	public List<Projectstatustransitionsallowed> getProjectstatustransitionsalloweds() {
		return projectstatustransitionsalloweds;
	}

	/**
	 * Set the list of Cipeproject
	 */
	public void setCipeprojects(List<Cipeproject> cipeprojects) {
		this.cipeprojects = cipeprojects;
	}

	/**
	 * @param description
	 *            new value for description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @param displayName
	 *            new value for displayName
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public void setProjectstatuschangelogs(List<Projectstatuschangelog> projectstatuschangelogs) {
		this.projectstatuschangelogs = projectstatuschangelogs;
	}

	public void setProjectstatustransitionsalloweds(List<Projectstatustransitionsallowed> projectstatustransitionsalloweds) {
		this.projectstatustransitionsalloweds = projectstatustransitionsalloweds;
	}
}